package com.example.dbsample.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
@TableName("task_item")
@ApiModel(value = "TaskItem对象", description = "任务项表")
public class TaskItemEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "任务id")
    @TableField("task_id")
    private String taskId;

    @ApiModelProperty(value = "流程追踪id")
    @TableField("trace_id")
    private String traceId;

    @ApiModelProperty(value = "模型id")
    @TableField("model_id")
    private String modelId;

    @ApiModelProperty(value = "提示词id")
    @TableField("prompt_id")
    private String promptId;

    @ApiModelProperty(value = "请求参数")
    @TableField("request_params")
    private String requestParams;

    @ApiModelProperty(value = "输出结果")
    @TableField("response")
    private String response;

    @ApiModelProperty(value = "任务开始时间")
    @TableField("start_time")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "任务结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "任务项状态 0:未开始 1：执行中 2：执行成功 3：执行失败")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "业务字段标识，贷后丢呀apply_no")
    @TableField("business_no")
    private String businessNo;

    @ApiModelProperty(value = "关联数据id")
    @TableField("data_id")
    private String dataId;

    @ApiModelProperty(value = "业务字段")
    @TableField("business_data")
    private String businessData;

    @ApiModelProperty(value = "执行次数")
    @TableField("execute_num")
    private String ececuteNum;
}
